import { createApp } from "vue";
import App from "./App.vue";
import router from "./router/index";
import store from "./store/index";
import axios from "./http/requst";
import "element-plus/dist/index.css";
import ElementPlus from "element-plus";
import { Button, Loading, Toast } from "vant";
import $ from "jquery";
import "./assets/icon/iconfont.css";
import converData from "./utils/converData";
// import VConsole from "vconsole";
// const vConsole = new VConsole();

import less from "less";
import "vant/lib/index.css";
const app = createApp(App);
app.use(Button);
app.use(Toast);
app.use(Loading);
app.use(less);
app.config.globalProperties.$ = $;
app.config.globalProperties.$converData = converData;
app.config.globalProperties.$apis = "https://cxy.localbird.cn";
app.config.globalProperties.ossSrc =
  "?x-oss-process=image/format,jpg/quality,q_50";
app.config.globalProperties.$docHeight = document.documentElement.clientHeight;
app.config.globalProperties.$docWidth = document.documentElement.clientWidth;
app.config.globalProperties.$axios = axios;
app.use(router).use(ElementPlus).use(store).mount("#app");
